package com.polarrose.spring.bayeux;

import dojox.cometd.Bayeux;

public interface BayeuxServer
{
    boolean publish(BayeuxDestination destination, Object message);
    boolean publish(BayeuxDestination destination, Object message, BayeuxClient from);

    void publish(BayeuxChannel channel, Object message);
    void publish(BayeuxChannel channel, Object message, BayeuxClient from);

    BayeuxChannel getChannel(String name);
    BayeuxChannel getChannel(String name, boolean create);

    Bayeux getBayeux();
}
